package com.fa4j.product.item.model;

import com.fa4j.common.base.model.BaseEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.List;

@Getter
@Schema(description = "商品状态")
@RequiredArgsConstructor
public enum ItemState implements BaseEnum {
    DRAFT(1, "草稿", List.of(2, 3)),
    ON_SALE(2, "销售中", List.of(3, 4)),
    OFF_SALE(3, "仓库中", List.of(2, 4)),
    STOP_SALE(4, "回收站", List.of(3)),

    ;
    private final Integer code;
    private final String name;
    private final List<Integer> nextStates;

}


